﻿namespace CoreEx.Common.Repository
{
    /// <summary>
    /// Indicates the status of an object.
    /// </summary>
    public enum StateType
    {
        /// <summary>
        /// No changes have been made to the object since it was retrieved.
        /// </summary>
        NotModified = 0,

        /// <summary>
        /// The object is new, but changes have been made to the object. 
        /// </summary>
        New = 1,

        /// <summary>
        /// The object is new and changes have been made to the object.
        /// </summary>
        NewModified = 2,

        /// <summary>
        /// One or more properties of a retrieved object has changes
        /// </summary>
        Modified = 3,

        /// <summary>
        /// The object is marked for deletion
        /// </summary>
        Deleted = 4
    }
}
